package com.photography.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import jakarta.persistence.Temporal;
import jakarta.persistence.TemporalType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@TableName("photographers")
@JsonInclude(JsonInclude.Include.NON_NULL) // 只包含非空字段
public class Photographers implements Serializable {

    @TableId(value = "photographer_id", type = IdType.AUTO)
    private Integer photographerId;

    private String name;

    private String gender;

    private String contactInfo;

    private String avatarUrl;

    private String expertise;


    private String workExperience;


    private String portfolioLinks;


    private String account;


    private String password;

    /**
     * 角色：manager-管理员，employee-普通摄影师
     */
    private String role;


    @Temporal(TemporalType.TIMESTAMP)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


    @Temporal(TemporalType.TIMESTAMP)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}
